public class Example26 {
    public static void main(String[] args) {
        int[] arr = new int[3];//定义一个长度为3
        arr[0] = 5;//为数组的第一个元素赋值
        System.out.println("arr[0] = " + arr[0]);
        arr = null;
        System.out.println("arr[0] = " + arr[0]);
    }
}
